﻿namespace HRM.CORE.REPORT
{
    using APP.HELPER.Utils.Security;
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptD02TS : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private HRM_INSURANCE cls;
        private XRTableCell col1;
        private XRTableCell col10;
        private XRTableCell col11;
        private XRTableCell col12;
        private XRTableCell col13;
        private XRTableCell col14;
        private XRTableCell col15;
        private XRTableCell col16;
        private XRTableCell col17;
        private XRTableCell col18;
        private XRTableCell col19;
        private XRTableCell col2;
        private XRTableCell col3;
        private XRTableCell col4;
        private XRTableCell col5;
        private XRTableCell col6;
        private XRTableCell col7;
        private XRTableCell col8;
        private XRTableCell col9;
        private IContainer components;
        private DetailBand Detail;
        private GroupHeaderBand GroupHeader1;
        private int m_Index;
        private Guid m_InsuranceTableListID;
        private float m_Top;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRLabel txtCompany;
        private XRLabel txtCompanyCode;
        private XRLabel txtCourseMonthYear;
        private XRLabel txtPhone;
        private XRLabel xrLabel1;
        private XRLabel xrLabel10;
        private XRLabel xrLabel11;
        private XRLabel xrLabel12;
        private XRLabel xrLabel13;
        private XRLabel xrLabel14;
        private XRLabel xrLabel15;
        private XRLabel xrLabel17;
        private XRLabel xrLabel18;
        private XRLabel xrLabel19;
        private XRLabel xrLabel2;
        private XRLabel xrLabel21;
        private XRLabel xrLabel22;
        private XRLabel xrLabel23;
        private XRLabel xrLabel24;
        private XRLabel xrLabel25;
        private XRLabel xrLabel26;
        private XRLabel xrLabel27;
        private XRLabel xrLabel28;
        private XRLabel xrLabel29;
        private XRLabel xrLabel3;
        private XRLabel xrLabel30;
        private XRLabel xrLabel31;
        private XRLabel xrLabel4;
        private XRLabel xrLabel5;
        private XRLabel xrLabel6;
        private XRLabel xrLabel7;
        private XRLabel xrLabel8;
        private XRLabel xrLabel9;
        private XRTable xrTable3;
        private XRTable xrTable4;
        private XRTableCell xrTableCell10;
        private XRTableCell xrTableCell3;
        private XRTableCell xrTableCell30;
        private XRTableCell xrTableCell31;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell50;
        private XRTableCell xrTableCell51;
        private XRTableCell xrTableCell7;
        private XRTable xrTableHeader;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow3;
        private XRTableRow xrTableRow4;
        private XRTableRow xrTableRow5;
        private XRTableRow xrTableRow6;

        public rptD02TS()
        {
            this.components = null;
            this.m_Index = 0;
            this.m_InsuranceTableListID = Guid.Empty;
            this.cls = new HRM_INSURANCE();
            this.m_Top = 0f;
            this.InitializeComponent();
        }

        public rptD02TS(Guid InsuranceTableListID)
        {
            this.components = null;
            this.m_Index = 0;
            this.m_InsuranceTableListID = Guid.Empty;
            this.cls = new HRM_INSURANCE();
            this.m_Top = 0f;
            this.InitializeComponent();
            this.m_InsuranceTableListID = InsuranceTableListID;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(rptD02TS));
            this.Detail = new DetailBand();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.txtCompany = new XRLabel();
            this.txtPhone = new XRLabel();
            this.txtCompanyCode = new XRLabel();
            this.txtCourseMonthYear = new XRLabel();
            this.xrLabel25 = new XRLabel();
            this.xrLabel1 = new XRLabel();
            this.xrLabel4 = new XRLabel();
            this.ReportFooter = new ReportFooterBand();
            this.xrLabel3 = new XRLabel();
            this.xrLabel2 = new XRLabel();
            this.xrTable4 = new XRTable();
            this.xrTableRow5 = new XRTableRow();
            this.xrTableCell3 = new XRTableCell();
            this.xrTableCell4 = new XRTableCell();
            this.xrTableRow6 = new XRTableRow();
            this.xrTableCell30 = new XRTableCell();
            this.xrTableCell31 = new XRTableCell();
            this.xrLabel5 = new XRLabel();
            this.xrTable3 = new XRTable();
            this.xrTableRow3 = new XRTableRow();
            this.xrTableCell7 = new XRTableCell();
            this.xrTableCell50 = new XRTableCell();
            this.xrTableRow4 = new XRTableRow();
            this.xrTableCell10 = new XRTableCell();
            this.xrTableCell51 = new XRTableCell();
            this.GroupHeader1 = new GroupHeaderBand();
            this.xrLabel14 = new XRLabel();
            this.xrLabel13 = new XRLabel();
            this.xrLabel12 = new XRLabel();
            this.xrLabel24 = new XRLabel();
            this.xrLabel8 = new XRLabel();
            this.xrLabel7 = new XRLabel();
            this.xrLabel6 = new XRLabel();
            this.xrLabel31 = new XRLabel();
            this.xrLabel30 = new XRLabel();
            this.xrLabel26 = new XRLabel();
            this.xrLabel23 = new XRLabel();
            this.xrLabel21 = new XRLabel();
            this.xrLabel22 = new XRLabel();
            this.xrLabel17 = new XRLabel();
            this.xrLabel18 = new XRLabel();
            this.xrLabel19 = new XRLabel();
            this.xrLabel29 = new XRLabel();
            this.xrLabel15 = new XRLabel();
            this.xrLabel28 = new XRLabel();
            this.xrLabel27 = new XRLabel();
            this.xrLabel11 = new XRLabel();
            this.xrLabel10 = new XRLabel();
            this.xrTableHeader = new XRTable();
            this.xrTableRow2 = new XRTableRow();
            this.col1 = new XRTableCell();
            this.col2 = new XRTableCell();
            this.col3 = new XRTableCell();
            this.col4 = new XRTableCell();
            this.col5 = new XRTableCell();
            this.col6 = new XRTableCell();
            this.col7 = new XRTableCell();
            this.col8 = new XRTableCell();
            this.col9 = new XRTableCell();
            this.col10 = new XRTableCell();
            this.col11 = new XRTableCell();
            this.col12 = new XRTableCell();
            this.col13 = new XRTableCell();
            this.col14 = new XRTableCell();
            this.col15 = new XRTableCell();
            this.col16 = new XRTableCell();
            this.col17 = new XRTableCell();
            this.col18 = new XRTableCell();
            this.col19 = new XRTableCell();
            this.xrLabel9 = new XRLabel();
            this.xrTable4.BeginInit();
            this.xrTable3.BeginInit();
            this.xrTableHeader.BeginInit();
            this.BeginInit();
            this.Detail.HeightF = 21f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.TopMargin.HeightF = 38f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 48f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.txtCompany, this.txtPhone, this.txtCompanyCode, this.txtCourseMonthYear, this.xrLabel25, this.xrLabel1, this.xrLabel4 });
            this.ReportHeader.HeightF = 129f;
            this.ReportHeader.Name = "ReportHeader";
            this.txtCompany.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompany.LocationFloat = new PointFloat(1.000922f, 24.70834f);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompany.SizeF = new SizeF(462.1666f, 17.70833f);
            this.txtCompany.StylePriority.UseFont = false;
            this.txtCompany.Text = "txtCompany";
            this.txtPhone.LocationFloat = new PointFloat(1.000922f, 43.70834f);
            this.txtPhone.Name = "txtPhone";
            this.txtPhone.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtPhone.SizeF = new SizeF(462.1667f, 17.70833f);
            this.txtPhone.Text = "txtPhone";
            this.txtCompanyCode.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompanyCode.LocationFloat = new PointFloat(1.000922f, 6.208344f);
            this.txtCompanyCode.Name = "txtCompanyCode";
            this.txtCompanyCode.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompanyCode.SizeF = new SizeF(462.1666f, 17.70833f);
            this.txtCompanyCode.StylePriority.UseFont = false;
            this.txtCompanyCode.Text = "M\x00e3 đơn vị:__/__ ____";
            this.txtCourseMonthYear.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic | FontStyle.Bold);
            this.txtCourseMonthYear.LocationFloat = new PointFloat(4.768372E-05f, 99.00001f);
            this.txtCourseMonthYear.Name = "txtCourseMonthYear";
            this.txtCourseMonthYear.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCourseMonthYear.SizeF = new SizeF(1085f, 17.70834f);
            this.txtCourseMonthYear.StylePriority.UseFont = false;
            this.txtCourseMonthYear.StylePriority.UseTextAlignment = false;
            this.txtCourseMonthYear.Text = "Số:............ Th\x00e1ng........... Năm...................";
            this.txtCourseMonthYear.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel25.LocationFloat = new PointFloat(803.7509f, 23.70834f);
            this.xrLabel25.Multiline = true;
            this.xrLabel25.Name = "xrLabel25";
            this.xrLabel25.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel25.SizeF = new SizeF(281.249f, 40.04165f);
            this.xrLabel25.StylePriority.UseTextAlignment = false;
            this.xrLabel25.Text = "(Ban h\x00e0nh k\x00e8m theo QĐ số: 1111/QĐ-BHXH\r\n Ng\x00e0y 25/10/2011 của BHXH Việt Nam)";
            this.xrLabel25.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel1.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel1.LocationFloat = new PointFloat(803.7509f, 6.00001f);
            this.xrLabel1.Name = "xrLabel1";
            this.xrLabel1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel1.SizeF = new SizeF(281.249f, 17.70833f);
            this.xrLabel1.StylePriority.UseFont = false;
            this.xrLabel1.StylePriority.UseTextAlignment = false;
            this.xrLabel1.Text = "Mẩu số: D02-TS";
            this.xrLabel1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel4.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.xrLabel4.LocationFloat = new PointFloat(3.178914E-05f, 68.75f);
            this.xrLabel4.Name = "xrLabel4";
            this.xrLabel4.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel4.SizeF = new SizeF(1085f, 30.25001f);
            this.xrLabel4.StylePriority.UseFont = false;
            this.xrLabel4.StylePriority.UseTextAlignment = false;
            this.xrLabel4.Text = "DANH S\x00c1CH LAO ĐỘNG THAM GIA BHXH, BHYT";
            this.xrLabel4.TextAlignment = TextAlignment.MiddleCenter;
            this.ReportFooter.Controls.AddRange(new XRControl[] { this.xrLabel3, this.xrLabel2, this.xrTable4, this.xrLabel5, this.xrTable3 });
            this.ReportFooter.HeightF = 464.0001f;
            this.ReportFooter.Name = "ReportFooter";
            this.xrLabel3.Font = new Font("Times New Roman", 11f);
            this.xrLabel3.LocationFloat = new PointFloat(14.42f, 51.45836f);
            this.xrLabel3.Multiline = true;
            this.xrLabel3.Name = "xrLabel3";
            this.xrLabel3.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel3.SizeF = new SizeF(545.8334f, 144.875f);
            this.xrLabel3.StylePriority.UseFont = false;
            this.xrLabel3.Text = manager.GetString("xrLabel3.Text");
            this.xrLabel2.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel2.LocationFloat = new PointFloat(575.9999f, 10.00001f);
            this.xrLabel2.Name = "xrLabel2";
            this.xrLabel2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel2.SizeF = new SizeF(135.5001f, 17.70833f);
            this.xrLabel2.StylePriority.UseFont = false;
            this.xrLabel2.StylePriority.UseTextAlignment = false;
            this.xrLabel2.Text = "Phần đơn vị ghi:";
            this.xrLabel2.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTable4.LocationFloat = new PointFloat(574.2499f, 61.45833f);
            this.xrTable4.Name = "xrTable4";
            this.xrTable4.Rows.AddRange(new XRTableRow[] { this.xrTableRow5, this.xrTableRow6 });
            this.xrTable4.SizeF = new SizeF(510.7499f, 64.87503f);
            this.xrTableRow5.Cells.AddRange(new XRTableCell[] { this.xrTableCell3, this.xrTableCell4 });
            this.xrTableRow5.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.StylePriority.UseFont = false;
            this.xrTableRow5.Weight = 1.0;
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.Weight = 1.3876858019500302;
            this.xrTableCell4.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.StylePriority.UseFont = false;
            this.xrTableCell4.StylePriority.UseTextAlignment = false;
            this.xrTableCell4.Text = "Ng\x00e0y......... th\x00e1ng........ năm...............";
            this.xrTableCell4.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell4.Weight = 1.3127750837966574;
            this.xrTableRow6.Cells.AddRange(new XRTableCell[] { this.xrTableCell30, this.xrTableCell31 });
            this.xrTableRow6.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableRow6.Name = "xrTableRow6";
            this.xrTableRow6.StylePriority.UseFont = false;
            this.xrTableRow6.Weight = 1.0;
            this.xrTableCell30.Name = "xrTableCell30";
            this.xrTableCell30.StylePriority.UseTextAlignment = false;
            this.xrTableCell30.Text = "Người lập biểu";
            this.xrTableCell30.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell30.Weight = 1.3876861246579728;
            this.xrTableCell31.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell31.Name = "xrTableCell31";
            this.xrTableCell31.StylePriority.UseFont = false;
            this.xrTableCell31.StylePriority.UseTextAlignment = false;
            this.xrTableCell31.Text = "Người sử dụng lao động";
            this.xrTableCell31.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell31.Weight = 1.3127747610887148;
            this.xrLabel5.Font = new Font("Times New Roman", 11f, FontStyle.Bold);
            this.xrLabel5.LocationFloat = new PointFloat(0f, 10.00001f);
            this.xrLabel5.Name = "xrLabel5";
            this.xrLabel5.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel5.SizeF = new SizeF(186.545f, 17.70833f);
            this.xrLabel5.StylePriority.UseFont = false;
            this.xrLabel5.StylePriority.UseTextAlignment = false;
            this.xrLabel5.Text = "Phần CQBHXH ghi:";
            this.xrLabel5.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTable3.LocationFloat = new PointFloat(1.000921f, 207.6667f);
            this.xrTable3.Name = "xrTable3";
            this.xrTable3.Rows.AddRange(new XRTableRow[] { this.xrTableRow3, this.xrTableRow4 });
            this.xrTable3.SizeF = new SizeF(559.2524f, 61.75003f);
            this.xrTableRow3.Cells.AddRange(new XRTableCell[] { this.xrTableCell7, this.xrTableCell50 });
            this.xrTableRow3.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableRow3.Name = "xrTableRow3";
            this.xrTableRow3.StylePriority.UseFont = false;
            this.xrTableRow3.Weight = 1.0;
            this.xrTableCell7.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell7.Name = "xrTableCell7";
            this.xrTableCell7.StylePriority.UseFont = false;
            this.xrTableCell7.StylePriority.UseTextAlignment = false;
            this.xrTableCell7.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell7.Weight = 0.80529935472605718;
            this.xrTableCell50.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell50.Name = "xrTableCell50";
            this.xrTableCell50.StylePriority.UseFont = false;
            this.xrTableCell50.StylePriority.UseTextAlignment = false;
            this.xrTableCell50.Text = "Ng\x00e0y......... th\x00e1ng........ năm...............";
            this.xrTableCell50.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell50.Weight = 0.70276504889577462;
            this.xrTableRow4.Cells.AddRange(new XRTableCell[] { this.xrTableCell10, this.xrTableCell51 });
            this.xrTableRow4.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableRow4.Name = "xrTableRow4";
            this.xrTableRow4.StylePriority.UseFont = false;
            this.xrTableRow4.Weight = 1.0;
            this.xrTableCell10.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell10.Name = "xrTableCell10";
            this.xrTableCell10.StylePriority.UseFont = false;
            this.xrTableCell10.StylePriority.UseTextAlignment = false;
            this.xrTableCell10.Text = "C\x00e1n bộ thu";
            this.xrTableCell10.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell10.Weight = 0.80529935472605718;
            this.xrTableCell51.Name = "xrTableCell51";
            this.xrTableCell51.StylePriority.UseTextAlignment = false;
            this.xrTableCell51.Text = "Phụ tr\x00e1ch thu";
            this.xrTableCell51.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell51.Weight = 0.70276504889577462;
            this.GroupHeader1.Controls.AddRange(new XRControl[] { 
                this.xrLabel14, this.xrLabel13, this.xrLabel12, this.xrLabel24, this.xrLabel8, this.xrLabel7, this.xrLabel6, this.xrLabel31, this.xrLabel30, this.xrLabel26, this.xrLabel23, this.xrLabel21, this.xrLabel22, this.xrLabel17, this.xrLabel18, this.xrLabel19, 
                this.xrLabel29, this.xrLabel15, this.xrLabel28, this.xrLabel27, this.xrLabel11, this.xrLabel10, this.xrTableHeader, this.xrLabel9
             });
            this.GroupHeader1.HeightF = 120f;
            this.GroupHeader1.Name = "GroupHeader1";
            this.xrLabel14.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel14.LocationFloat = new PointFloat(546.4999f, 47.91667f);
            this.xrLabel14.Name = "xrLabel14";
            this.xrLabel14.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel14.SizeF = new SizeF(49.41681f, 51.25001f);
            this.xrLabel14.StylePriority.UseBorders = false;
            this.xrLabel14.StylePriority.UseTextAlignment = false;
            this.xrLabel14.Text = "Th\x00e2m ni\x00ean VK";
            this.xrLabel14.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel13.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel13.LocationFloat = new PointFloat(498.4998f, 47.91667f);
            this.xrLabel13.Name = "xrLabel13";
            this.xrLabel13.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel13.SizeF = new SizeF(48f, 51.25001f);
            this.xrLabel13.StylePriority.UseBorders = false;
            this.xrLabel13.StylePriority.UseTextAlignment = false;
            this.xrLabel13.Text = "Chức vụ";
            this.xrLabel13.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel12.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel12.LocationFloat = new PointFloat(428f, 22.50004f);
            this.xrLabel12.Name = "xrLabel12";
            this.xrLabel12.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel12.SizeF = new SizeF(71.00003f, 76.67f);
            this.xrLabel12.StylePriority.UseBorders = false;
            this.xrLabel12.StylePriority.UseTextAlignment = false;
            this.xrLabel12.Text = "Tiền lương, tiền c\x00f4ng";
            this.xrLabel12.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel24.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel24.LocationFloat = new PointFloat(351.6584f, 0f);
            this.xrLabel24.Name = "xrLabel24";
            this.xrLabel24.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel24.SizeF = new SizeF(76.34158f, 99.16668f);
            this.xrLabel24.StylePriority.UseBorders = false;
            this.xrLabel24.StylePriority.UseTextAlignment = false;
            this.xrLabel24.Text = "Cấp bậc, chức vụ, chức danh";
            this.xrLabel24.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel8.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel8.LocationFloat = new PointFloat(315.4167f, 0f);
            this.xrLabel8.Name = "xrLabel8";
            this.xrLabel8.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel8.SizeF = new SizeF(36.24165f, 99.16668f);
            this.xrLabel8.StylePriority.UseBorders = false;
            this.xrLabel8.StylePriority.UseTextAlignment = false;
            this.xrLabel8.Text = "Nữ";
            this.xrLabel8.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel7.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel7.LocationFloat = new PointFloat(243.7f, 0f);
            this.xrLabel7.Name = "xrLabel7";
            this.xrLabel7.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel7.SizeF = new SizeF(71.71675f, 99.16668f);
            this.xrLabel7.StylePriority.UseBorders = false;
            this.xrLabel7.StylePriority.UseTextAlignment = false;
            this.xrLabel7.Text = "Ng\x00e0y sinh";
            this.xrLabel7.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel6.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel6.LocationFloat = new PointFloat(643.5834f, 0f);
            this.xrLabel6.Name = "xrLabel6";
            this.xrLabel6.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel6.SizeF = new SizeF(206.5f, 21.99999f);
            this.xrLabel6.StylePriority.UseBorders = false;
            this.xrLabel6.StylePriority.UseTextAlignment = false;
            this.xrLabel6.Text = "Mức đ\x00f3ng mới";
            this.xrLabel6.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel31.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel31.LocationFloat = new PointFloat(951.5399f, 0f);
            this.xrLabel31.Name = "xrLabel31";
            this.xrLabel31.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel31.SizeF = new SizeF(46.33496f, 99.16668f);
            this.xrLabel31.StylePriority.UseBorders = false;
            this.xrLabel31.StylePriority.UseTextAlignment = false;
            this.xrLabel31.Text = "Kh\x00f4ng trả thẻ";
            this.xrLabel31.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel30.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel30.LocationFloat = new PointFloat(897.7467f, 0f);
            this.xrLabel30.Name = "xrLabel30";
            this.xrLabel30.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel30.SizeF = new SizeF(53.79138f, 99.16668f);
            this.xrLabel30.StylePriority.UseBorders = false;
            this.xrLabel30.StylePriority.UseTextAlignment = false;
            this.xrLabel30.Text = "Đến th\x00e1ng, năm";
            this.xrLabel30.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel26.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel26.LocationFloat = new PointFloat(850.08f, 0f);
            this.xrLabel26.Name = "xrLabel26";
            this.xrLabel26.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel26.SizeF = new SizeF(47.66669f, 99.16668f);
            this.xrLabel26.StylePriority.UseBorders = false;
            this.xrLabel26.StylePriority.UseTextAlignment = false;
            this.xrLabel26.Text = "Từ th\x00e1ng, năm";
            this.xrLabel26.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel23.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel23.LocationFloat = new PointFloat(428f, 0f);
            this.xrLabel23.Name = "xrLabel23";
            this.xrLabel23.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel23.SizeF = new SizeF(215.9999f, 21.99999f);
            this.xrLabel23.StylePriority.UseBorders = false;
            this.xrLabel23.StylePriority.UseTextAlignment = false;
            this.xrLabel23.Text = "Mức đ\x00f3ng cũ";
            this.xrLabel23.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel21.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel21.LocationFloat = new PointFloat(805.0834f, 47.92001f);
            this.xrLabel21.Name = "xrLabel21";
            this.xrLabel21.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel21.SizeF = new SizeF(45f, 51.25001f);
            this.xrLabel21.StylePriority.UseBorders = false;
            this.xrLabel21.StylePriority.UseTextAlignment = false;
            this.xrLabel21.Text = "Th\x00e2m ni\x00ean nghề";
            this.xrLabel21.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel22.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel22.LocationFloat = new PointFloat(714.5834f, 22.50001f);
            this.xrLabel22.Name = "xrLabel22";
            this.xrLabel22.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel22.SizeF = new SizeF(135.5f, 25.42f);
            this.xrLabel22.StylePriority.UseBorders = false;
            this.xrLabel22.StylePriority.UseTextAlignment = false;
            this.xrLabel22.Text = "Phụ cấp";
            this.xrLabel22.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel17.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel17.LocationFloat = new PointFloat(643.5834f, 22.50001f);
            this.xrLabel17.Name = "xrLabel17";
            this.xrLabel17.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel17.SizeF = new SizeF(71f, 76.67001f);
            this.xrLabel17.StylePriority.UseBorders = false;
            this.xrLabel17.StylePriority.UseTextAlignment = false;
            this.xrLabel17.Text = "Tiền lương, tiền c\x00f4ng";
            this.xrLabel17.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel18.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel18.LocationFloat = new PointFloat(760.0834f, 47.92001f);
            this.xrLabel18.Name = "xrLabel18";
            this.xrLabel18.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel18.SizeF = new SizeF(45.83331f, 51.25001f);
            this.xrLabel18.StylePriority.UseBorders = false;
            this.xrLabel18.StylePriority.UseTextAlignment = false;
            this.xrLabel18.Text = "Th\x00e2m ni\x00ean VK";
            this.xrLabel18.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel19.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel19.LocationFloat = new PointFloat(714.5834f, 47.92001f);
            this.xrLabel19.Name = "xrLabel19";
            this.xrLabel19.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel19.SizeF = new SizeF(45f, 51.25001f);
            this.xrLabel19.StylePriority.UseBorders = false;
            this.xrLabel19.StylePriority.UseTextAlignment = false;
            this.xrLabel19.Text = "Chức vụ";
            this.xrLabel19.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel29.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel29.LocationFloat = new PointFloat(498f, 22.50001f);
            this.xrLabel29.Name = "xrLabel29";
            this.xrLabel29.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel29.SizeF = new SizeF(145f, 25.41666f);
            this.xrLabel29.StylePriority.UseBorders = false;
            this.xrLabel29.StylePriority.UseTextAlignment = false;
            this.xrLabel29.Text = "Phụ cấp";
            this.xrLabel29.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel15.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel15.LocationFloat = new PointFloat(594.9999f, 47.91667f);
            this.xrLabel15.Name = "xrLabel15";
            this.xrLabel15.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel15.SizeF = new SizeF(48f, 51.25001f);
            this.xrLabel15.StylePriority.UseBorders = false;
            this.xrLabel15.StylePriority.UseTextAlignment = false;
            this.xrLabel15.Text = "Th\x00e2m ni\x00ean nghề";
            this.xrLabel15.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel28.Borders = BorderSide.Right | BorderSide.Top | BorderSide.Left;
            this.xrLabel28.LocationFloat = new PointFloat(1038.856f, 0f);
            this.xrLabel28.Name = "xrLabel28";
            this.xrLabel28.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel28.SizeF = new SizeF(46.14331f, 99.16668f);
            this.xrLabel28.StylePriority.UseBorders = false;
            this.xrLabel28.StylePriority.UseTextAlignment = false;
            this.xrLabel28.Text = "Ghi ch\x00fa";
            this.xrLabel28.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel27.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel27.LocationFloat = new PointFloat(997.8749f, 0f);
            this.xrLabel27.Name = "xrLabel27";
            this.xrLabel27.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel27.SizeF = new SizeF(41.32471f, 99.16668f);
            this.xrLabel27.StylePriority.UseBorders = false;
            this.xrLabel27.StylePriority.UseTextAlignment = false;
            this.xrLabel27.Text = "Đ\x00e3 c\x00f3 sổ BHXH";
            this.xrLabel27.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel11.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel11.LocationFloat = new PointFloat(158.5f, 0f);
            this.xrLabel11.Name = "xrLabel11";
            this.xrLabel11.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel11.SizeF = new SizeF(85.2f, 99.16668f);
            this.xrLabel11.StylePriority.UseBorders = false;
            this.xrLabel11.StylePriority.UseTextAlignment = false;
            this.xrLabel11.Text = "Số sổ BHXH";
            this.xrLabel11.TextAlignment = TextAlignment.MiddleCenter;
            this.xrLabel10.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel10.LocationFloat = new PointFloat(24.42f, 0f);
            this.xrLabel10.Name = "xrLabel10";
            this.xrLabel10.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel10.SizeF = new SizeF(134f, 99.16668f);
            this.xrLabel10.StylePriority.UseBorders = false;
            this.xrLabel10.StylePriority.UseTextAlignment = false;
            this.xrLabel10.Text = "Họ v\x00e0 t\x00ean";
            this.xrLabel10.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableHeader.Borders = BorderSide.All;
            this.xrTableHeader.Font = new Font("Times New Roman", 8.75f);
            this.xrTableHeader.LocationFloat = new PointFloat(6.357829E-05f, 99.16668f);
            this.xrTableHeader.Name = "xrTableHeader";
            this.xrTableHeader.Rows.AddRange(new XRTableRow[] { this.xrTableRow2 });
            this.xrTableHeader.SizeF = new SizeF(1085f, 20.83334f);
            this.xrTableHeader.StylePriority.UseBorders = false;
            this.xrTableHeader.StylePriority.UseFont = false;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { 
                this.col1, this.col2, this.col3, this.col4, this.col5, this.col6, this.col7, this.col8, this.col9, this.col10, this.col11, this.col12, this.col13, this.col14, this.col15, this.col16, 
                this.col17, this.col18, this.col19
             });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.StylePriority.UseTextAlignment = false;
            this.xrTableRow2.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow2.Weight = 1.0;
            this.col1.Name = "col1";
            this.col1.Text = "[1]";
            this.col1.Weight = 0.0702764924139753;
            this.col2.Name = "col2";
            this.col2.Text = "[2]";
            this.col2.Weight = 0.37050692556607268;
            this.col3.Name = "col3";
            this.col3.Text = "[3]";
            this.col3.Weight = 0.23557602154245075;
            this.col4.Name = "col4";
            this.col4.Text = "[4]";
            this.col4.Weight = 0.19830415139154353;
            this.col5.Name = "col5";
            this.col5.Text = "[5]";
            this.col5.Weight = 0.10020277054139977;
            this.col6.Name = "col6";
            this.col6.Text = "[6]";
            this.col6.Weight = 0.21107832424535758;
            this.col7.Name = "col7";
            this.col7.Text = "[7]";
            this.col7.Weight = 0.19631336016690934;
            this.col8.Name = "col8";
            this.col8.Text = "[8]";
            this.col8.Weight = 0.13271889284244312;
            this.col9.Name = "col9";
            this.col9.Text = "[9]";
            this.col9.Weight = 0.13271889502685894;
            this.col10.Name = "col10";
            this.col10.Text = "[10]";
            this.col10.Weight = 0.13271889172798393;
            this.col11.Name = "col11";
            this.col11.Text = "[11]";
            this.col11.Weight = 0.19631335769769995;
            this.col12.Name = "col12";
            this.col12.Text = "[12]";
            this.col12.Weight = 0.12442396317573273;
            this.col13.Name = "col13";
            this.col13.Text = "[13]";
            this.col13.Weight = 0.1267188976201897;
            this.col14.Name = "col14";
            this.col14.Text = "[14]";
            this.col14.Weight = 0.12442396466313412;
            this.col15.Name = "col15";
            this.col15.Text = "[15]";
            this.col15.Weight = 0.1318064448584122;
            this.col16.Name = "col16";
            this.col16.Text = "[16]";
            this.col16.Weight = 0.148728117269383;
            this.col17.Name = "col17";
            this.col17.Text = "[17]";
            this.col17.Weight = 0.12810139169019594;
            this.col18.Name = "col18";
            this.col18.Text = "[18]";
            this.col18.Weight = 0.11424884757256823;
            this.col19.Name = "col19";
            this.col19.Text = "[19]";
            this.col19.Weight = 0.12482028998768936;
            this.xrLabel9.Borders = BorderSide.Top | BorderSide.Left;
            this.xrLabel9.LocationFloat = new PointFloat(0f, 0f);
            this.xrLabel9.Name = "xrLabel9";
            this.xrLabel9.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel9.SizeF = new SizeF(25.4167f, 99.16668f);
            this.xrLabel9.StylePriority.UseBorders = false;
            this.xrLabel9.StylePriority.UseTextAlignment = false;
            this.xrLabel9.Text = "Số TT";
            this.xrLabel9.TextAlignment = TextAlignment.MiddleCenter;
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.ReportFooter, this.GroupHeader1 });
            base.Landscape = true;
            base.Margins = new Margins(50, 0x22, 0x26, 0x30);
            base.PageHeight = 0x33b;
            base.PageWidth = 0x491;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rpt03aTBH_BeforePrint);
            this.xrTable4.EndInit();
            this.xrTable3.EndInit();
            this.xrTableHeader.EndInit();
            this.EndInit();
        }

        private void LoadD02TS()
        {
            DataTable list = new DataTable();
            list = this.cls.GetList(this.m_InsuranceTableListID);
            XRTable child = new XRTable();
            XRTable table3 = new XRTable();
            XRTable table4 = new XRTable();
            XRTable table5 = new XRTable();
            XRTable table6 = new XRTable();
            XRTable table7 = new XRTable();
            XRTable table8 = new XRTable();
            XRTable table9 = new XRTable();
            int num = 1;
            int num2 = 1;
            int num3 = 1;
            int num4 = 1;
            int num5 = 1;
            int num6 = 1;
            XRTableCell cell = null;
            string str = "";
            string str2 = "";
            foreach (DataRow row in list.Rows)
            {
                if (((str == row["EmployeeCode"].ToString()) && (str2 == row["Type"].ToString())) && (cell != null))
                {
                    cell.Borders = BorderSide.Right | BorderSide.Left;
                }
                XRTableRow row2 = new XRTableRow();
                cell = new XRTableCell();
                XRTableCell cell2 = new XRTableCell();
                XRTableCell cell3 = new XRTableCell();
                XRTableCell cell4 = new XRTableCell();
                XRTableCell cell5 = new XRTableCell();
                XRTableCell cell6 = new XRTableCell();
                XRTableCell cell7 = new XRTableCell();
                XRTableCell cell8 = new XRTableCell();
                XRTableCell cell9 = new XRTableCell();
                XRTableCell cell10 = new XRTableCell();
                XRTableCell cell11 = new XRTableCell();
                XRTableCell cell12 = new XRTableCell();
                XRTableCell cell13 = new XRTableCell();
                XRTableCell cell14 = new XRTableCell();
                XRTableCell cell15 = new XRTableCell();
                XRTableCell cell16 = new XRTableCell();
                XRTableCell cell17 = new XRTableCell();
                XRTableCell cell18 = new XRTableCell();
                XRTableCell cell19 = new XRTableCell();
                cell.WidthF = this.col1.WidthF;
                cell2.WidthF = this.col2.WidthF;
                cell3.WidthF = this.col3.WidthF;
                cell4.WidthF = this.col4.WidthF;
                cell5.WidthF = this.col5.WidthF;
                cell6.WidthF = this.col6.WidthF;
                cell7.WidthF = this.col7.WidthF;
                cell8.WidthF = this.col8.WidthF;
                cell9.WidthF = this.col9.WidthF;
                cell10.WidthF = this.col10.WidthF;
                cell11.WidthF = this.col11.WidthF;
                cell12.WidthF = this.col12.WidthF;
                cell13.WidthF = this.col13.WidthF;
                cell14.WidthF = this.col14.WidthF;
                cell15.WidthF = this.col15.WidthF;
                cell16.WidthF = this.col16.WidthF;
                cell17.WidthF = this.col17.WidthF;
                cell18.WidthF = this.col18.WidthF;
                cell19.WidthF = this.col19.WidthF;
                cell.TextAlignment = TextAlignment.MiddleCenter;
                cell2.TextAlignment = TextAlignment.MiddleLeft;
                cell2.Padding = new PaddingInfo(4, 0, 0, 0);
                cell3.TextAlignment = TextAlignment.MiddleLeft;
                cell3.Padding = new PaddingInfo(4, 0, 0, 0);
                cell4.TextAlignment = TextAlignment.MiddleCenter;
                cell5.TextAlignment = TextAlignment.MiddleCenter;
                cell6.TextAlignment = TextAlignment.MiddleLeft;
                cell6.Padding = new PaddingInfo(4, 0, 0, 0);
                cell7.TextAlignment = TextAlignment.MiddleRight;
                cell7.Padding = new PaddingInfo(0, 4, 0, 0);
                cell8.TextAlignment = TextAlignment.MiddleRight;
                cell8.Padding = new PaddingInfo(0, 4, 0, 0);
                cell9.TextAlignment = TextAlignment.MiddleRight;
                cell9.Padding = new PaddingInfo(0, 4, 0, 0);
                cell10.TextAlignment = TextAlignment.MiddleRight;
                cell10.Padding = new PaddingInfo(0, 4, 0, 0);
                cell11.TextAlignment = TextAlignment.MiddleRight;
                cell11.Padding = new PaddingInfo(0, 4, 0, 0);
                cell12.TextAlignment = TextAlignment.MiddleRight;
                cell12.Padding = new PaddingInfo(0, 4, 0, 0);
                cell13.TextAlignment = TextAlignment.MiddleRight;
                cell13.Padding = new PaddingInfo(0, 4, 0, 0);
                cell14.TextAlignment = TextAlignment.MiddleRight;
                cell14.Padding = new PaddingInfo(0, 4, 0, 0);
                cell15.TextAlignment = TextAlignment.MiddleCenter;
                cell16.TextAlignment = TextAlignment.MiddleCenter;
                cell17.TextAlignment = TextAlignment.MiddleCenter;
                cell18.TextAlignment = TextAlignment.MiddleCenter;
                cell19.TextAlignment = TextAlignment.MiddleLeft;
                cell19.Padding = new PaddingInfo(4, 0, 0, 0);
                cell2.Text = row["EmployeeName"].ToString();
                cell3.Text = row["SocialInsuranceCode"].ToString();
                cell4.Text = HRM_EMPLOYEE.BirthdayString(Convert.ToInt32(row["BirthdayYear"].ToString()), Convert.ToInt32(row["BirthdayMonth"].ToString()), Convert.ToInt32(row["BirthdayDay"].ToString()));
                if (Convert.ToBoolean(row["Sex"].ToString()))
                {
                    cell5.Text = "";
                }
                else
                {
                    cell5.Text = "X";
                }
                cell6.Text = row["Position"].ToString();
                cell7.Text = (Convert.ToDecimal(row["OldSalary"].ToString()) > 0M) ? Convert.ToDecimal(row["OldSalary"].ToString()).ToString("#,0") : "";
                cell8.Text = (Convert.ToDecimal(row["OldAllowance1"].ToString()) > 0M) ? Convert.ToDecimal(row["OldAllowance1"].ToString()).ToString("#,0") : "";
                cell9.Text = (Convert.ToDecimal(row["OldAllowance2"].ToString()) > 0M) ? Convert.ToDecimal(row["OldAllowance2"].ToString()).ToString("#,0") : "";
                cell10.Text = (Convert.ToDecimal(row["OldAllowance3"].ToString()) > 0M) ? Convert.ToDecimal(row["OldAllowance3"].ToString()).ToString("#,0") : "";
                cell11.Text = (Convert.ToDecimal(row["NewSalary"].ToString()) > 0M) ? Convert.ToDecimal(row["NewSalary"].ToString()).ToString("#,0") : "";
                cell12.Text = (Convert.ToDecimal(row["NewAllowance1"].ToString()) > 0M) ? Convert.ToDecimal(row["NewAllowance1"].ToString()).ToString("#,0") : "";
                cell13.Text = (Convert.ToDecimal(row["NewAllowance2"].ToString()) > 0M) ? Convert.ToDecimal(row["NewAllowance2"].ToString()).ToString("#,0") : "";
                cell14.Text = (Convert.ToDecimal(row["NewAllowance3"].ToString()) > 0M) ? Convert.ToDecimal(row["NewAllowance3"].ToString()).ToString("#,0") : "";
                cell15.Text = Convert.ToDateTime(row["FromDate"].ToString()).ToString("MM/yyyy");
                cell16.Text = Convert.ToDateTime(row["ToDate"].ToString()).ToString("MM/yyyy");
                if (Convert.ToBoolean(row["IsPay"].ToString()))
                {
                    cell17.Text = "X";
                }
                else
                {
                    cell17.Text = "";
                }
                if (row["SocialInsuranceCode"].ToString() == "")
                {
                    cell18.Text = "";
                }
                else
                {
                    cell18.Text = "X";
                }
                row2.Cells.Add(cell);
                row2.Cells.Add(cell2);
                row2.Cells.Add(cell3);
                row2.Cells.Add(cell4);
                row2.Cells.Add(cell5);
                row2.Cells.Add(cell6);
                row2.Cells.Add(cell7);
                row2.Cells.Add(cell8);
                row2.Cells.Add(cell9);
                row2.Cells.Add(cell10);
                row2.Cells.Add(cell11);
                row2.Cells.Add(cell12);
                row2.Cells.Add(cell13);
                row2.Cells.Add(cell14);
                row2.Cells.Add(cell15);
                row2.Cells.Add(cell16);
                row2.Cells.Add(cell17);
                row2.Cells.Add(cell18);
                row2.Cells.Add(cell19);
                if (row["Type"].ToString() == "1")
                {
                    if (num == 1)
                    {
                        str = "";
                    }
                    if (str == row["EmployeeCode"].ToString())
                    {
                        cell.Text = "";
                    }
                    else
                    {
                        cell.Text = num.ToString();
                        num++;
                    }
                    child.Rows.Add(row2);
                }
                else if (row["Type"].ToString() == "2")
                {
                    if (num5 == 1)
                    {
                        str = "";
                    }
                    if (str == row["EmployeeCode"].ToString())
                    {
                        cell.Text = "";
                    }
                    else
                    {
                        cell.Text = num5.ToString();
                        num5++;
                    }
                    table6.Rows.Add(row2);
                }
                else if (row["Type"].ToString() == "3")
                {
                    if (Convert.ToDecimal(row["NewSalary"].ToString()) >= Convert.ToDecimal(row["OldSalary"].ToString()))
                    {
                        if (num2 == 1)
                        {
                            str = "";
                        }
                        if (str == row["EmployeeCode"].ToString())
                        {
                            cell.Text = "";
                        }
                        else
                        {
                            cell.Text = num2.ToString();
                            num2++;
                        }
                        table3.Rows.Add(row2);
                    }
                    else
                    {
                        if (num6 == 1)
                        {
                            str = "";
                        }
                        if (str == row["EmployeeCode"].ToString())
                        {
                            cell.Text = "";
                        }
                        else
                        {
                            cell.Text = num6.ToString();
                            num6++;
                        }
                        table7.Rows.Add(row2);
                    }
                }
                else if (row["Type"].ToString() == "4")
                {
                    if (num3 == 1)
                    {
                        str = "";
                    }
                    if (str == row["EmployeeCode"].ToString())
                    {
                        cell.Text = "";
                    }
                    else
                    {
                        cell.Text = num3.ToString();
                        num3++;
                    }
                    table4.Rows.Add(row2);
                }
                else if (row["Type"].ToString() == "5")
                {
                    if (num4 == 1)
                    {
                        str = "";
                    }
                    if (str == row["EmployeeCode"].ToString())
                    {
                        cell.Text = "";
                    }
                    else
                    {
                        cell.Text = num4.ToString();
                        num4++;
                    }
                    table5.Rows.Add(row2);
                }
                str2 = row["Type"].ToString();
                str = row["EmployeeCode"].ToString();
            }
            child.Borders = table3.Borders = table4.Borders = table5.Borders = table6.Borders = table7.Borders = table8.Borders = table9.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            child.WidthF = this.xrTableHeader.WidthF;
            table3.WidthF = this.xrTableHeader.WidthF;
            table4.WidthF = this.xrTableHeader.WidthF;
            table5.WidthF = this.xrTableHeader.WidthF;
            table6.WidthF = this.xrTableHeader.WidthF;
            table7.WidthF = this.xrTableHeader.WidthF;
            table8.WidthF = this.xrTableHeader.WidthF;
            table9.WidthF = this.xrTableHeader.WidthF;
            XRLabel label = new XRLabel {
                Text = "I.Tăng",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Bold),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label.HeightF;
            this.Detail.Controls.Add(label);
            XRLabel label2 = new XRLabel {
                Text = "I.1 Lao động",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Italic),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label2.HeightF;
            this.Detail.Controls.Add(label2);
            child.TopF = this.m_Top;
            this.m_Top += child.HeightF;
            this.Detail.Controls.Add(child);
            XRLabel label3 = new XRLabel {
                Text = "I.2 Mức đ\x00f3ng",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Italic),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label3.HeightF;
            this.Detail.Controls.Add(label3);
            table3.TopF = this.m_Top;
            this.m_Top += table3.HeightF;
            this.Detail.Controls.Add(table3);
            XRLabel label4 = new XRLabel {
                Text = "I.3 Bảo hiểm y tế",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Italic),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label4.HeightF;
            this.Detail.Controls.Add(label4);
            table4.TopF = this.m_Top;
            this.m_Top += table4.HeightF;
            this.Detail.Controls.Add(table4);
            XRLabel label5 = new XRLabel {
                Text = "I.4 Bảo hiểm thất nghiệp",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Italic),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label5.HeightF;
            this.Detail.Controls.Add(label5);
            table5.TopF = this.m_Top;
            this.m_Top += table5.HeightF;
            this.Detail.Controls.Add(table5);
            XRLabel label6 = new XRLabel {
                Text = "Cộng tăng",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Italic),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label6.HeightF;
            this.Detail.Controls.Add(label6);
            XRLabel label7 = new XRLabel {
                Text = "II.Giảm",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Bold),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label7.HeightF;
            this.Detail.Controls.Add(label7);
            XRLabel label8 = new XRLabel {
                Text = "2.1 Lao động",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Italic),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label8.HeightF;
            this.Detail.Controls.Add(label8);
            table6.TopF = this.m_Top;
            this.m_Top += table6.HeightF;
            this.Detail.Controls.Add(table6);
            XRLabel label9 = new XRLabel {
                Text = "II.2 Mức đ\x00f3ng",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Italic),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label9.HeightF;
            this.Detail.Controls.Add(label9);
            table7.TopF = this.m_Top;
            this.m_Top += table7.HeightF;
            this.Detail.Controls.Add(table7);
            XRLabel label10 = new XRLabel {
                Text = "II.3 Bảo hiểm y tế",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Italic),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label10.HeightF;
            this.Detail.Controls.Add(label10);
            table8.TopF = this.m_Top;
            this.m_Top += table8.HeightF;
            this.Detail.Controls.Add(table8);
            XRLabel label11 = new XRLabel {
                Text = "II.4 Bảo hiểm thất nghiệp",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Italic),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label11.HeightF;
            this.Detail.Controls.Add(label11);
            table9.TopF = this.m_Top;
            this.m_Top += table9.HeightF;
            this.Detail.Controls.Add(table9);
            XRLabel label12 = new XRLabel {
                Text = "Cộng giảm",
                Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left,
                WidthF = this.xrTableHeader.WidthF,
                Font = new Font("Times New Roman", 11.75f, FontStyle.Italic),
                TextAlignment = TextAlignment.MiddleLeft,
                Padding = new PaddingInfo(4, 0, 0, 0),
                TopF = this.m_Top
            };
            this.m_Top += label12.HeightF;
            this.Detail.Controls.Add(label12);
        }

        private void rpt03aTBH_BeforePrint(object sender, PrintEventArgs e)
        {
            ////if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompanyCode.Text = "M\x00e3 đơn vị: " + "";//MyInfo.CompanyCode;
                this.txtCompany.Text = "T\x00ean đơn vị: " + "";//MyInfo.Company;
                this.txtPhone.Text = "Điện thoại li\x00ean hệ:" + "";//MyInfo.Tel;
            }
            HRM_INSURANCE_TABLELIST hrm_insurance_tablelist = new HRM_INSURANCE_TABLELIST();
            hrm_insurance_tablelist.Get(this.m_InsuranceTableListID);
            this.txtCourseMonthYear.Text = "Số: " + hrm_insurance_tablelist.Course.ToString() + ". Th\x00e1ng " + hrm_insurance_tablelist.Month.ToString() + " Năm " + hrm_insurance_tablelist.Year.ToString();
            this.LoadD02TS();
        }
    }
}

